﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace QuanLyThietBi
{
    public partial class frmMain : Form
    {
        SqlConnection con;
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            string strcon = "Data Source=HungQuay;Initial Catalog=khachsan;Integrated Security=True";
            con = new SqlConnection(strcon);
        }

        private void quảnLýLoạiVậtTưToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmquanlyloaivattu frm = new frmquanlyloaivattu(con);
            frm.MdiParent = this;
            frm.Show();
        }

        private void quảnLýVậtTưToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmquanlyvattu frm = new frmquanlyvattu(con);
            frm.MdiParent = this;
            frm.Show();
        }

        private void quảnLýPhiếuNhậpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmquanlyphieunhap frm = new frmquanlyphieunhap(con);
            frm.MdiParent = this;
            frm.Show();
        }

        private void quảnLýLoạiPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmquanlyloaiphong frm = new frmquanlyloaiphong(con);
            frm.MdiParent = this;
            frm.Show();
        }

        private void quảnLýThiếtBịToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmquanlythietbi frm = new frmquanlythietbi(con);
            frm.MdiParent = this;
            frm.Show();
        }

        private void quảnLýPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmquanlyphong frm = new frmquanlyphong(con);
            frm.MdiParent = this;
            frm.Show();
        }
    }
}
